package com.woniuxy.exam.service.impl;

import com.woniuxy.commons.entity.SingleChoice;
import com.woniuxy.exam.mapper.SingleChoiceMapper;
import com.woniuxy.exam.service.SingleChoiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zouyang
 * @date 2020/7/17 - 23:17
 */
@Service
public class SingleChoiceServiceImpl implements SingleChoiceService {

    @Autowired
    private SingleChoiceMapper singleChoiceMapper;


    @Override
    public List<SingleChoice> selectAll() {
        return singleChoiceMapper.selectAll();
    }

    @Override
    public int insertList(List<SingleChoice> list) {
        return singleChoiceMapper.insertList(list);
    }

    @Override
    public List<SingleChoice> selectByAll(SingleChoice singleChoice) {
        return singleChoiceMapper.selectByAll(singleChoice);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return singleChoiceMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(SingleChoice record) {
        return singleChoiceMapper.insert(record);
    }

    @Override
    public int insertSelective(SingleChoice record) {
        return singleChoiceMapper.insertSelective(record);
    }

    @Override
    public SingleChoice selectByPrimaryKey(Integer id) {
        return singleChoiceMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(SingleChoice record) {
        return singleChoiceMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SingleChoice record) {
        return singleChoiceMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Integer> selectIdByBankId(Integer bankId) {
        return singleChoiceMapper.selectIdByBankId(bankId);
    }
}

